package com.jv.spring.postprocessor.scan;

import com.jv.spring.importaware.define.MyImport;
import lombok.Getter;
import lombok.Setter;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.BeanFactoryAware;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
@Getter
@Setter
public class ProcessorUser implements BeanFactoryAware {
	private BeanFactory beanFactory;

	@Value("${name}")
	private String name;

	@Value("${age}")
	private Integer age;

	@Override
	public void setBeanFactory(BeanFactory beanFactory) throws BeansException {
		this.beanFactory = beanFactory;
	}
}
